package com.supermarket.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Favorites implements Serializable {
    private Integer id;
    private Integer userId;
    private Integer commodityId;
    private String createTime;
    
    // 非数据库字段，用于扩展展示商品信息
    private Commodity commodity;
}
